<?php if ($sf_user->hasFlash('saved_flash')){
?>		
			<div id="notification" class="nNote nSuccess hideit" onclick="$('#notification').hide('slow')" style="margin-top: 40px;">
                <p><strong>SUCCESS: </strong>Template Definition Saved</p>
         </div>

<?php 
}?>

<?php if ($sf_user->hasFlash('alert_flash')){
?>		
			<div id="alert_msg" class="nNote nWarning hideit" onclick="$('#alert_msg').hide('slow')" style="margin-top: 40px;">
                <p><strong>ALERT: </strong>Need to create content and footer</p>
         </div>

<?php 
}?>
	<div class="widget" id="template_div">
		<?php include_partial('template', array('form' => $form, 'directory' => $directory, 'selected_directory' => $selected_directory,'categories' => $categories,'levelIds' => $levelIds, 'sorting_criterias' => $sorting_criterias)); ?>
	</div>
	

	<div class="fix"></div>
	<div class="widget">
		<?php include_partial('table', array('templates' => $templates));?>
	</div>
	
	
<script>

	$('form').jqTransform({imgPath:'../images/forms'});

	
</script> 